/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo1021;

/**
 *
 * @author Administrator
 */
public class Student {
    String no;
    String name;
    int score;
     void getInfo(){
        System.out.println("name="+
                name+" no="+no
                +"score="+score);
    }
//    public String getInfo1(){
//        return ("name="+
//                name+" no="+no
//                +"score="+score);
//    }
    public static void main(String args[]){
        Student sa=new Student();
        sa.no="123";
        sa.name="li";
        sa.score=-90;
        System.out.println(sa.name);
        sa.getInfo();
        
        Student sc=new Student();
        sc.no="124";
        sc.name="wang";
        sc.score=91;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
        sc.getInfo();
    }
    
}
